package com.example.ListPage;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.example.ListPage.bean.ResultBean;
import com.example.utils.JSONUtil;

public class Test {

	public static void main(String[] args) {
		List<Map<String, String>> list = new ArrayList<Map<String, String>>();
		for (int i = 0; i < 5; i++) {
			Map<String, String> temp = new HashMap<String, String>();
			temp.put(String.valueOf(i), String.valueOf(i));
			list.add(temp);
		}
		ResultBean<Map<String, String>> result = new ListPageService<Map<String, String>>().findChildListByPage(list, 2,
				3);
		String rstr = JSONUtil.objToJsonStr(result);
		System.out.println(rstr);
	}
}
